package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fanp
 * @version v1.0.0
 * @Description :
 * @Create on : 2021/1/26 14:48
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_android")
public class AndroidDo extends Model<AndroidDo> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("file_id")
    private Long fileId;

    @TableField("apk_url")
    private String apkUrl;

    @TableField("version")
    private String version;

    @TableField("tips")
    private String tips;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("delete_flag")
    private int deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
